if TwinNo==1
    %DK0009924375
    %Danish 10y bond
    blackbond=304;
    greenbond=305;
    controlbond=109;
    Outstanding=zeros(length(AllDates2),2);
    Outstanding(:,1)=60.115;
    ind=AllDates2>=datenum('05Jan2022');
    Outstanding(ind,1)=Outstanding(ind,1)+2;
    ind=AllDates2>=datenum('02Feb2022');
    Outstanding(ind,1)=Outstanding(ind,1)+1.58;
    ind=AllDates2>=datenum('16Feb2022');
    Outstanding(ind,1)=Outstanding(ind,1)+1.9;
    ind=AllDates2>=datenum('02March2022');
    Outstanding(ind,1)=Outstanding(ind,1)+0.22;
    ind=AllDates2>=datenum('20April2022');
    Outstanding(ind,1)=Outstanding(ind,1)+0.2;
    ind=AllDates2>=datenum('04May2022');
    Outstanding(ind,1)=Outstanding(ind,1)+0;
    ind=AllDates2>=datenum('01June2022');
    Outstanding(ind,1)=Outstanding(ind,1)+0.46;
    ind=AllDates2>=datenum('03Aug2022');
    Outstanding(ind,1)=Outstanding(ind,1)+0;
    ind=AllDates2>=datenum('05Oct2022');
    Outstanding(ind,1)=Outstanding(ind,1)+2.3;
    ind=AllDates2>=datenum('16Nov2022');
    Outstanding(ind,1)=Outstanding(ind,1)+1.5;
    ind=AllDates2>=datenum('07Dec2022');
    Outstanding(ind,1)=Outstanding(ind,1)+1.43;
    ind=AllDates2>=datenum('06Jan2023');
    Outstanding(ind,1)=Outstanding(ind,1)+1.4;
    %Green bond
    eday=min(find(bonddat2(:,2,greenbond)~=0));  
    ind=AllDates2>=AllDates2(eday); %19Jan2022
    Outstanding(ind,2)=Outstanding(ind,2)+5.005;
    ind=AllDates2>=datenum('16March2022');
    Outstanding(ind,2)=Outstanding(ind,2)+1.3;
    ind=AllDates2>=datenum('18May2022');
    Outstanding(ind,2)=Outstanding(ind,2)+2.66;
    ind=AllDates2>=datenum('15June2022');
    Outstanding(ind,2)=Outstanding(ind,2)+0;
    ind=AllDates2>=datenum('06July2022');
    Outstanding(ind,2)=Outstanding(ind,2)+2.36;
    ind=AllDates2>=datenum('07Sep2022');
    Outstanding(ind,2)=Outstanding(ind,2)+1.965;
    ind=AllDates2>=datenum('21Oct2022');
    Outstanding(ind,2)=Outstanding(ind,2)+2.950;
    ed=[datenum('19Jan2022') datenum('16March2022') datenum('18May2022') datenum('06July2022') datenum('07Sept2022') datenum('21Oct2022')];
    edp=[datenum('02Feb2022') datenum('16Feb2022') datenum('02March2022') datenum('20April2022') datenum('01June2022') datenum('05Oct2022') datenum('16Nov2022') datenum('07Dec2022') datenum('04Jan2023')];
    bondtxt='Danish 10-year I';
elseif TwinNo==2
    %DK0009924615
    %Danish 10y bond
    blackbond=317;
    greenbond=316;
    controlbond=141;
    Outstanding=zeros(length(AllDates2),2);
    ind=AllDates2>=datenum('08Feb2023');
    Outstanding(ind,1)=Outstanding(ind,1)+4.99;
    ind=AllDates2>=datenum('22Feb2023');
    Outstanding(ind,1)=Outstanding(ind,1)+1.99;
    ind=AllDates2>=datenum('08March2023');
    Outstanding(ind,1)=Outstanding(ind,1)+1.33;
    ind=AllDates2>=datenum('22March2023');
    Outstanding(ind,1)=Outstanding(ind,1)+0.64;
    ind=AllDates2>=datenum('19April2023');
    Outstanding(ind,1)=Outstanding(ind,1)+1.44;
    ind=AllDates2>=datenum('10May2023');
    Outstanding(ind,1)=Outstanding(ind,1)+0.64;
    ind=AllDates2>=datenum('24May2023');
    Outstanding(ind,1)=Outstanding(ind,1)+0.4;
    ind=AllDates2>=datenum('07June2023');
    Outstanding(ind,1)=Outstanding(ind,1)+1.17;
    ind=AllDates2>=datenum('21June2023');
    Outstanding(ind,1)=Outstanding(ind,1)+2.45;
    ind=AllDates2>=datenum('05July2023');
    Outstanding(ind,1)=Outstanding(ind,1)+2.7;
    ind=AllDates2>=datenum('09Aug2023');
    Outstanding(ind,1)=Outstanding(ind,1)+2;
    ind=AllDates2>=datenum('06Sep2023');
    Outstanding(ind,1)=Outstanding(ind,1)+3;
    ind=AllDates2>=datenum('04Oct2023');
    Outstanding(ind,1)=Outstanding(ind,1)+1.94;
    ind=AllDates2>=datenum('18Oct2023');
    Outstanding(ind,1)=Outstanding(ind,1)+1.57;
    ind=AllDates2>=datenum('22Nov2023');
    Outstanding(ind,1)=Outstanding(ind,1)+1.485;
    ind=AllDates2>=datenum('06Dec2023');
    Outstanding(ind,1)=Outstanding(ind,1)+0.3;
    %Green bond
    eday=min(find(bonddat2(:,2,greenbond)~=0));  
    ind=AllDates2>=AllDates2(eday); 
    Outstanding(ind,2)=Outstanding(ind,2)+7.75;
    ind=AllDates2>=datenum('08Nov2023');
    Outstanding(ind,2)=Outstanding(ind,2)+2.28;
    ed=[datenum('26Sept2023') datenum('08Nov2023')];
    edp=[datenum('08Feb2023') datenum('22Feb2023') datenum('08March2023') datenum('22March2023') datenum('19April2023') datenum('10May2023') datenum('24May2023') datenum('07Jun2023') datenum('21June2023') datenum('05July2023') datenum('09Aug2023') datenum('06Sept2023') datenum('04Oct2023') datenum('18Oct2023') datenum('22Nov2023') datenum('06Dec2023')];
    bondtxt='Danish 10-year II';
elseif TwinNo==3
    %%DE0001030716
    %German 5y bond I
    blackbond=63;
    greenbond=62;
    controlbond=141;
    controlbond=118;
    Outstanding=zeros(length(AllDates2),2);
    Outstanding(:,1)=Outstanding(:,1)+18;
    ind=AllDates2>=datenum('04November2020');
    Outstanding(ind,1)=Outstanding(ind,1)+5;
    ind=AllDates2>=datenum('02Dec2020');
    Outstanding(ind,1)=Outstanding(ind,1)+2;
    ind=AllDates2>=datenum('24Jan2023');
    Outstanding(ind,1)=Outstanding(ind,1)+1.5;
    ind=AllDates2>=datenum('07June2023');
    Outstanding(ind,1)=Outstanding(ind,1)+1;
    %Green bond
    eday=min(find(bonddat2(:,2,greenbond)~=0));
    ind=AllDates2>=AllDates2(eday); %04Nov2020
    Outstanding(ind,2)=Outstanding(ind,2)+5;
    ind=AllDates2>=datenum('24Jan2023');
    Outstanding(ind,2)=Outstanding(ind,2)+1.5;
    ind=AllDates2>=datenum('07June2023');
    Outstanding(ind,2)=Outstanding(ind,2)+1;
    ed=[datenum('04Nov2020') datenum('24Jan2023') datenum('07June2023')];
    edp=[datenum('02Dec2020') datenum('02Dec2020') datenum('24Jan2023') datenum('07June2023')];
    bondtxt='German 5-year I';
elseif TwinNo==4
    %%DE0001030708
    %German 10y bond 
    blackbond=21;
    greenbond=22;
    controlbond=110;
    Outstanding=zeros(length(AllDates2),2);
    ind=AllDates2>=datenum('17June2020');
    Outstanding(ind,1)=Outstanding(ind,1)+5;
    ind=AllDates2>=datenum('15July2020');
    Outstanding(ind,1)=Outstanding(ind,1)+5;
    ind=AllDates2>=datenum('12Aug2020');
    Outstanding(ind,1)=Outstanding(ind,1)+4;
    ind=AllDates2>=datenum('02Sept2020');
    Outstanding(ind,1)=Outstanding(ind,1)+6.5;
    ind=AllDates2>=datenum('09Sept2020');
    Outstanding(ind,1)=Outstanding(ind,1)+4;
    ind=AllDates2>=datenum('07Oct2020');
    Outstanding(ind,1)=Outstanding(ind,1)+3;
    ind=AllDates2>=datenum('18Nov2020');
    Outstanding(ind,1)=Outstanding(ind,1)+3;
    ind=AllDates2>=datenum('02March2022');
    Outstanding(ind,1)=Outstanding(ind,1)+1.5;
    ind=AllDates2>=datenum('20July2022');
    Outstanding(ind,1)=Outstanding(ind,1)+1.5;
    %Green bond
    eday=min(find(bonddat2(:,2,greenbond)~=0));  
    ind=AllDates2>=AllDates2(eday); %02-09-2020
    Outstanding(ind,2)=Outstanding(ind,2)+6.5;
    ind=AllDates2>=datenum('02March2022');
    Outstanding(ind,2)=Outstanding(ind,2)+1.5;
    ind=AllDates2>=datenum('20July2022');
    Outstanding(ind,2)=Outstanding(ind,2)+1.5;
    ed=[datenum('02Sept2020') datenum('02March2022')  datenum('20July2022')];
    edp=[datenum('09Sept2020') datenum('07Oct2020') datenum('18Nov2020')  datenum('02March2022')  datenum('20July2022')];
    bondtxt='German 10-year I';
elseif TwinNo==5
    %%DE0001030732
    %German 10y bond 
    blackbond=17;
    greenbond=18;
    controlbond=109;
    Outstanding=zeros(length(AllDates2),2);
    ind=AllDates2>=datenum('16June2021');
    Outstanding(ind,1)=Outstanding(ind,1)+5;
    ind=AllDates2>=datenum('14July2021');
    Outstanding(ind,1)=Outstanding(ind,1)+4;
    ind=AllDates2>=datenum('11Aug2021');
    Outstanding(ind,1)=Outstanding(ind,1)+4;
    ind=AllDates2>=datenum('08Sept2021');
    Outstanding(ind,1)=Outstanding(ind,1)+3.5;
    ind=AllDates2>=datenum('29Sept2021');
    Outstanding(ind,1)=Outstanding(ind,1)+4;
    ind=AllDates2>=datenum('20Oct2021');
    Outstanding(ind,1)=Outstanding(ind,1)+3;
    ind=AllDates2>=datenum('10Nov2021');
    Outstanding(ind,1)=Outstanding(ind,1)+3;
    ind=AllDates2>=datenum('08Dec2021');
    Outstanding(ind,1)=Outstanding(ind,1)+3;
    ind=AllDates2>=datenum('04May2022');
    Outstanding(ind,1)=Outstanding(ind,1)+1.5;
    ind=AllDates2>=datenum('02Nov2022');
    Outstanding(ind,1)=Outstanding(ind,1)+1;
    %Green bond
    eday=min(find(bonddat2(:,2,greenbond)~=0));  
    ind=AllDates2>=AllDates2(eday); %08Sept2021
    Outstanding(ind,2)=Outstanding(ind,2)+3.5;
    ind=AllDates2>=datenum('20Oct2021');
    Outstanding(ind,2)=Outstanding(ind,2)+3;
    ind=AllDates2>=datenum('04May2022');
    Outstanding(ind,2)=Outstanding(ind,2)+1.5;
    ind=AllDates2>=datenum('02Nov2022');
    Outstanding(ind,2)=Outstanding(ind,2)+1;
    ed=[datenum('08Sept2021')  datenum('20Oct2021') datenum('04May2022') datenum('02Nov2022')];
    edp=[datenum('10Nov2021') datenum('08Dec2021') datenum('04May2022') datenum('02Nov2022')];
    bondtxt='German 10-year II';
elseif TwinNo==6
    %%DE0001030724
    %German 30y bond
    blackbond=2;
    greenbond=3;
    controlbond=101;
    Outstanding=zeros(length(AllDates2),2);
    ind=AllDates2>=datenum('21August2019');
    Outstanding(ind,1)=Outstanding(ind,1)+2;
    ind=AllDates2>=datenum('18Sep2019');
    Outstanding(ind,1)=Outstanding(ind,1)+1.5;
    ind=AllDates2>=datenum('20Nov2019');
    Outstanding(ind,1)=Outstanding(ind,1)+1.5;
    ind=AllDates2>=datenum('15Jan2020');
    Outstanding(ind,1)=Outstanding(ind,1)+1.5;
    ind=AllDates2>=datenum('18March2020');
    Outstanding(ind,1)=Outstanding(ind,1)+1.5;
    ind=AllDates2>=datenum('10June2020');
    Outstanding(ind,1)=Outstanding(ind,1)+6;
    ind=AllDates2>=datenum('19Aug2020');
    Outstanding(ind,1)=Outstanding(ind,1)+1.5;
    ind=AllDates2>=datenum('14Oct2020');
    Outstanding(ind,1)=Outstanding(ind,1)+1;
    ind=AllDates2>=datenum('11Nov2020');
    Outstanding(ind,1)=Outstanding(ind,1)+1;
    ind=AllDates2>=datenum('20Jan2021');
    Outstanding(ind,1)=Outstanding(ind,1)+1.5;
    ind=AllDates2>=datenum('17March2021');
    Outstanding(ind,1)=Outstanding(ind,1)+1.5;
    ind=AllDates2>=datenum('11May2021');
    Outstanding(ind,1)=Outstanding(ind,1)+6;
    ind=AllDates2>=datenum('09June2021');
    Outstanding(ind,1)=Outstanding(ind,1)+1.5;
    ind=AllDates2>=datenum('18Aug2021');
    Outstanding(ind,1)=Outstanding(ind,1)+1;
    ind=AllDates2>=datenum('09February2022');
    Outstanding(ind,1)=Outstanding(ind,1)+1.5;
    ind=AllDates2>=datenum('01June2022');
    Outstanding(ind,1)=Outstanding(ind,1)+4;
    %Green bond 
    eday=min(find(bonddat2(:,2,greenbond)~=0));
    ind=AllDates2>=AllDates2(eday); %11May2021
    Outstanding(ind,2)=Outstanding(ind,2)+6;
    ind=AllDates2>=datenum('01June2022');
    Outstanding(ind,2)=Outstanding(ind,2)+4;
    ed=[datenum('11May2021') datenum('01June2022')];
    edp=[datenum('09June2021') datenum('18Aug2021') datenum('09February2022')];
    bondtxt='German 30-year I';
elseif TwinNo==7
    %%DE0001030740
    %German 5y bond II
    blackbond=74; %DE0001141869
    greenbond=73; %DE0001030740
    controlbond=117; %NL0012171458
    Outstanding=zeros(length(AllDates2),2); %
    Outstanding(:,1)=Outstanding(:,1)+12;
    ind=AllDates2>=datenum('31Aug2022');
    Outstanding(ind,1)=Outstanding(ind,1)+5;
    ind=AllDates2>=datenum('27Sept2022');
    Outstanding(ind,1)=Outstanding(ind,1)+3;
    ind=AllDates2>=datenum('25Oct2022');
    Outstanding(ind,1)=Outstanding(ind,1)+4;
    ind=AllDates2>=datenum('22Nov2022');
    Outstanding(ind,1)=Outstanding(ind,1)+3;
    ind=AllDates2>=datenum('21March2023');
    Outstanding(ind,1)=Outstanding(ind,1)+1.5;
    ind=AllDates2>=datenum('30Aug2023');
    Outstanding(ind,1)=Outstanding(ind,1)+1.5;
    %Green bond
    eday=min(find(bonddat2(:,2,greenbond)~=0));
    ind=AllDates2>=AllDates2(eday); %31Aug2022
    Outstanding(ind,2)=Outstanding(ind,2)+5;
    ind=AllDates2>=datenum('21March2023');
    Outstanding(ind,2)=Outstanding(ind,2)+1.5;
    ind=AllDates2>=datenum('30Aug2023');
    Outstanding(ind,2)=Outstanding(ind,2)+1.5;
    ind=AllDates2>=datenum('23January2024');
    Outstanding(ind,2)=Outstanding(ind,2)+1;
    ed=[datenum('31Aug2022') datenum('21March2023') datenum('30Aug2023') datenum('23January2024')];
    edp=[datenum('21March2023'); datenum('30Aug2023')];
    bondtxt='German 5-year II';
elseif TwinNo==8
    %%DE0001030757
    %German 30y bond II
    %DBR 1.8 08/15/53
    blackbond=72; %DE0001102614
    greenbond=68; %DE0001030757
    controlbond=138;
    Outstanding=zeros(length(AllDates2),2);
    Outstanding(:,1)=Outstanding(:,1)+13.5;
    ind=AllDates2>=datenum('13June2023');
    Outstanding(ind,1)=Outstanding(ind,1)+4.5;
    ind=AllDates2>=datenum('19July2023');
    Outstanding(ind,1)=Outstanding(ind,1)+1.5;
    ind=AllDates2>=datenum('29Aug2023');
    Outstanding(ind,1)=Outstanding(ind,1)+3;
    ind=AllDates2>=datenum('13Sept2023');
    Outstanding(ind,1)=Outstanding(ind,1)+1.5;
    ind=AllDates2>=datenum('31Oct2023');
    Outstanding(ind,1)=Outstanding(ind,1)+1;
    ind=AllDates2>=datenum('15Nov2023');
    Outstanding(ind,1)=Outstanding(ind,1)+1;
    ind=AllDates2>=datenum('17Jan2024');
    Outstanding(ind,1)=Outstanding(ind,1)+1;
    %Green bond
    eday=min(find(bonddat2(:,2,greenbond)~=0));
    ind=AllDates2>=AllDates2(eday); %13June2023
    Outstanding(ind,2)=Outstanding(ind,2)+4.5;
    ind=AllDates2>=datenum('31Oct2023');
    Outstanding(ind,2)=Outstanding(ind,2)+1;
    ind=AllDates2>=datenum('23Jan2024');
    Outstanding(ind,2)=Outstanding(ind,2)+1;
    ed=[datenum('13June2023') datenum('31Oct2023') datenum('23Jan2024')];
    edp=[datenum('19July2023') datenum('29Aug2023') datenum('13Sept2023') datenum('31Oct2023') datenum('15Nov2023') datenum('17Jan2024')];
    bondtxt='German 30-year II';
elseif TwinNo==9
    %%DE000BU3Z005
    %German 10y bond III
    blackbond=70; %DE000BU2Z007
    greenbond=69; %DE000BU3Z005 DBR 2.3 02/15/33 G 
    controlbond=141;
    Outstanding=zeros(length(AllDates2),2);
    Outstanding(:,1)=Outstanding(:,1)+24;
    ind=AllDates2>=datenum('25April2023');
    Outstanding(ind,1)=Outstanding(ind,1)+5.25;
    ind=AllDates2>=datenum('17May2023');
    Outstanding(ind,1)=Outstanding(ind,1)+4;
    ind=AllDates2>=datenum('14June2023');
    Outstanding(ind,1)=Outstanding(ind,1)+4;
    ind=AllDates2>=datenum('05July2023');
    Outstanding(ind,1)=Outstanding(ind,1)+1;
    %Green bond
    eday=min(find(bonddat2(:,2,greenbond)~=0));
    ind=AllDates2>=AllDates2(eday); %25April2023
    Outstanding(ind,2)=Outstanding(ind,2)+5.25;
    ind=AllDates2>=datenum('05July2023');
    Outstanding(ind,2)=Outstanding(ind,2)+1;
    ed=[datenum('25April2023') datenum('05July2023')];
    edp=[datenum('25April2023') datenum('17May2023') datenum('14June2023') datenum('05July2023')];
    bondtxt='German 10-year III';
else end
 


